package question4;

public class Factoriel extends Unaire{
  
  public Factoriel(Expression e){
    super(e);
  }

	 public <T> T accepter(Visiteur<T> v){
    return v.visite(this);
   }
	 
	 public static Integer fact(int n){
	   if(n==0) return 1;
	   else return n*(fact(n-1));
	 }
}
